import request from '@/utils/request'

// 首页数据接口
export const getHomeData = () => {
    return request({
        url: '/prod-api/centre-data/count/home/getHomeData',
        method: 'get'
    })
}

// 首页公告
export const homeAnnouncementList = (pageNum) => {
    return request({
        url: `/prod-api/centre-data/count/home/getAnnouncementList/${pageNum}`,
        method: 'get'
    })
}

export function homeDataShow (query) {
  return request({
    url: '/prod-api/centre-data/count/home/getHomeData',
    method: 'get',
    params: query
  })
}

// 月度目标
export function monthTargetData (query) {
  return request({
    url: '/prod-api/centre-data/count/home/getMonthTargetData',
    method: 'get',
    params: query
  })
}